home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 1
/
Gekikoh Dennoh Club Vol. 1 (Japan).7z
/
Gekikoh Dennoh Club Vol. 1 (Japan) (Track 1).bin
/
kowin
/
dockob
/
buta.kob
< prev
next >
Wrap
Text File
|
1996-02-12
|
2KB
|
72 lines
dim int c(4095)
dim int pl(15)={0,8456,61400,52944,40260,27584,19136,38678,0,0,0,0,0,0,0,65535}
/*pl={0,8456,40926,34518,23882,15302,8902,20246,0,0,0,0,0,0,0,65535}
dim int bk(7)={ &h200,&h200,&h400,&h000,&h600,&h600,&h800,&h000 } /* 動き
dim int dx(9)={ 0, -6,0,6, -6,0,6, -6,0,6 }
dim int dy(9)={ 0, 6,6,6, 0,0,0, -6,-6,-6 }
dim int ms(9)={ 0, 0,3,1, 0,0,1, 0,2,1 }
int mk=3,an,dn=0,dw,da
int x=180,y=110
int f,i
f=fopen( "pig2.pat", "r")
fread( c, 4096, f )
fclose( f )
WindowTitleOpen( 0, WINX, WINY, 384, 256, 0, "豚です。", 3 )
GraphicInit( 0, 16, pl )
ITIME=6
end
func Eredraw( wno )
DrawClear( wno, 2 )
DrawGraphicClear( wno, 0 )
DrawGraphicPut( wno, x,y,x+15,y+31, c, mk*&h1000+bk(an) )
endfunc
func Einterval( wno )
int s,x0,y0
if dn then dance():return(1)
s=stick( 1 )
if s then {
x0=x:y0=y
x=x+dx(s)
y=y+dy(s)
if x<8 or x>360 then x=x0
if y<8 or y>224 then y=y0
an=(an+1)and 7
if mk<>ms(s) then {
an=0
mk=ms(s)
}
DrawGraphicFill( 0, x0,y0,x0+15,y0+31, 0 )
DrawGraphicPut( 0, x,y,x+15,y+31, c, mk*&h1000+bk(an) )
}
if strig(1) then dn=60:dw=1:da=0
endfunc
func dance()
if dn>10 then {
dw=dw-1
if dw<=0 then {
dw=(60-dn)/10
DrawGraphicPut( 0, x,y,x+15,y+31, c, (da and 3)*&h1000+&h0a00 )
da=da+1
}
} else if dn>1 then {
DrawGraphicPut( 0, x,y,x+15,y+31, c, mk*&h1000+&h0c00 )
} else {
DrawGraphicPut( 0, x,y,x+15,y+31, c, mk*&h1000 )
an=0
}
dn=dn-1
endfunc